package com.doeis.uwork.entity.mongo;

import java.sql.Timestamp;

import com.voland.core.annotation.Associate;
import com.voland.core.annotation.Table;
import com.voland.core.db.Entity;

/**
 * 私聊实体类
 * @author nortan
 *
 */
@Table(name="private_msg")
public class PrivateMsg extends Entity implements Cloneable {
	
	private String id;	
	private String from;//from userid
	private String fromName; //from username
	
	private String to;// to userid
	private String toName;
	
	private Integer sourceType;//共享信息类型
	private String  msceneType;//小场景
	private String  sourceId;//可能是指数，模板，拼图
	private String  shareid;//共享信息编号
	private Timestamp created_at;
	private String content;
	
	private String img;
	
	@Associate
	private String error;
	@Associate
	private Integer page;//共享信息类型
	@Associate
	private String sourceName;//定制或者指数名称
	@Associate
	private String head_pic;//用户头像url

	
	
	public String getHead_pic() {
		return head_pic;
	}

	public void setHead_pic(String head_pic) {
		this.head_pic = head_pic;
	}

	public String getSourceName() {
		return sourceName;
	}

	public void setSourceName(String sourceName) {
		this.sourceName = sourceName;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getFromName() {
		return fromName;
	}

	public void setFromName(String fromName) {
		this.fromName = fromName;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}

	public String getMsceneType() {
		return msceneType;
	}

	public void setMsceneType(String msceneType) {
		this.msceneType = msceneType;
	}

	public String getToName() {
		return toName;
	}

	public void setToName(String toName) {
		this.toName = toName;
	}

	public Timestamp getCreated_at() {
		return created_at;
	}

	public void setCreated_at(Timestamp created_at) {
		this.created_at = created_at;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}


//	public List<Reply> getReplyLists() {
//		return replyLists;
//	}
//
//	public void setReplyLists(List<Reply> replyLists) {
//		this.replyLists = replyLists;
//	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public Integer getSourceType() {
		return sourceType;
	}

	public void setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
	}

	public String getSourceId() {
		return sourceId;
	}

	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}

	public String getShareid() {
		return shareid;
	}

	public void setShareid(String shareid) {
		this.shareid = shareid;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	@Override
	public String toString() {
		return "PrivateMsg [id=" + id + ", from=" + from + ", fromName="
				+ fromName + ", to=" + to + ", toName=" + toName
				+ ", sourceType=" + sourceType + ", sourceId=" + sourceId
				+ ", shareid=" + shareid + ", created_at=" + created_at
				+ ", content=" + content + ", img=" + img + ", error=" + error
				+ "]";
	}

}
